#ifndef		__SCROLLTEXTWARNING__
#define		__SCROLLTEXTWARNING__

#include	<list>
#include	<string>

#include	<ncurses.h>

#include	"AColor.hpp"

class		ScrollTextWarning : public AColor
{
public:
  ScrollTextWarning(std::list<std::string> listItems, unsigned int heigth, unsigned int width, WINDOW *parentWin);
  ~ScrollTextWarning();
  void	update();
  void	cursorDown();
  void	cursorUp();
  void	cursorRight();
  void	cursorLeft();
  std::string	getLineOnCursor();
  int		getStartDisplay()const;
private:
  unsigned int			_cursor;
  unsigned int			_startDisplay;
  unsigned int			_nbFlags;
  std::list<std::string>	_listItems;
  unsigned int			_heightWin;
  unsigned int			_widthWin;
  WINDOW			*_parentWin;
};

#endif
